package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import appapi.entity.app.OnsitedetailEntity;import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author  djq
 * @date 2023/5/23 15:07
 * @description: 
 */

/**
 * 巡检明细
 */
@ApiModel(value = "巡检明细")
@Data
public class OnsitedetailDto extends BaseEntity {
    @ApiModelProperty(value = "详情记录id(新增不带)")
    private Long onsiteRecId;

    @ApiModelProperty(value = "记录id(新增不带)")
    private Long onsiteId;

    @ApiModelProperty(value = "检测项目")
    private String onsiteItem;

    /**
     * 0正常 1异常
     */
    @ApiModelProperty(value = "0正常 1异常")
    private Integer onsiteResult;

    @ApiModelProperty(value = "巡检要求")
    private String auditNote;

    @ApiModelProperty(value = "")
    private String onsiteDesc;

    @ApiModelProperty(value = "")
    private Integer auditState;

    @ApiModelProperty(value = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "图片地址数组")
    private List<String> imgUrlList;
    @ApiModelProperty(value = "附件地址url")
    private List<String> annexUrl;

    @ApiModelProperty(value = "图片地址(不传这里)")
    private String imgUrl;

    @ApiModelProperty(value = "整改要求")
    private String rectRequire;

    public OnsitedetailEntity vo2Entity() {
        OnsitedetailEntity entity = new OnsitedetailEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}